package com.lu.springboot01.controller;

import com.lu.springboot01.pojo.User;
import com.lu.springboot01.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserController {
    @Autowired
    private UserService userService;

    @RequestMapping("/test")
    public List<User> test() {
        return userService.finall();
    }
}
